<template>
  <div>
    <roles-header></roles-header>
    <roles-condition></roles-condition>

  </div>
</template>
<script>
import RolesHeader from "@/pages/roles/components/Header"
import RolesCondition from "@/pages/roles/components/Condition"
export default {
  components: { 
     RolesHeader,
     RolesCondition
  },
  beforeRouteEnter(to, from, next) {
    var UserToken=localStorage.getItem("UserToken");
    if (UserToken) {
       next();
    } else {
       next({ path: '/login', query: { historypath: "/roles" }});
    }
  }
};
</script>